$OpenBSD: patch-dolphin_src_CMakeLists_txt,v 1.2 2014/07/09 20:03:23 zhuk Exp $
Fix linking.
--- dolphin/src/CMakeLists.txt.orig	Wed Apr 30 11:34:32 2014
+++ dolphin/src/CMakeLists.txt	Tue May 27 16:12:25 2014
@@ -115,12 +115,7 @@ kde4_add_kcfg_files(dolphinprivate_LIB_SRCS
 
 kde4_add_library(dolphinprivate SHARED ${dolphinprivate_LIB_SRCS})
 
-target_link_libraries(
-    dolphinprivate
-    ${KDE4_KFILE_LIBS}
-    konq
-    ${KDE4_KNEWSTUFF3_LIBS}
-)
+target_link_libraries(dolphinprivate konq)
 
 if(HAVE_BALOO)
     target_link_libraries(
@@ -131,12 +126,17 @@ if(HAVE_BALOO)
     )
 endif()
 
+target_link_libraries(
+    dolphinprivate
+    ${KDE4_KNEWSTUFF3_LIBS}
+    ${KDE4_PLASMA_LIBS}
+    ${KDE4_KFILE_LIBS}
+)
+
 if(X11_Xrender_FOUND)
     target_link_libraries(dolphinprivate ${X11_Xrender_LIB})
 endif(X11_Xrender_FOUND)
 
-target_link_libraries(dolphinprivate ${KDE4_PLASMA_LIBS})
-
 set_target_properties(dolphinprivate PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
 install(TARGETS dolphinprivate  ${INSTALL_TARGETS_DEFAULT_ARGS})
 
@@ -236,17 +236,18 @@ kde4_add_app_icon(dolphin_SRCS "${KDE4_ICON_INSTALL_DI
 kde4_add_kdeinit_executable(dolphin ${dolphin_SRCS})
 
 target_link_libraries(kdeinit_dolphin
-    ${KDE4_KDEPRINT_LIBS}
-    ${KDE4_KFILE_LIBS}
-    ${KDE4_KPARTS_LIBS}
-    ${KDE4_KCMUTILS_LIBRARY}
-    konq
     dolphinprivate
+    konq
     knewstuff3
-    ${KDE4_SOLID_LIBS}
-    ${KDE4_PHONON_LIBS}
 )
 
+if (KActivities_FOUND)
+    target_link_libraries(
+        kdeinit_dolphin
+        ${KACTIVITIES_LIBRARY}
+    )
+endif (KActivities_FOUND)
+
 if(HAVE_BALOO)
     target_link_libraries(kdeinit_dolphin
         ${BALOO_LIBRARIES}
@@ -254,12 +255,14 @@ if(HAVE_BALOO)
     )
 endif()
 
-if (KActivities_FOUND)
-    target_link_libraries(
-        kdeinit_dolphin
-        ${KACTIVITIES_LIBRARY}
-    )
-endif (KActivities_FOUND)
+target_link_libraries(kdeinit_dolphin
+    ${KDE4_KDEPRINT_LIBS}
+    ${KDE4_KFILE_LIBS}
+    ${KDE4_KPARTS_LIBS}
+    ${KDE4_KCMUTILS_LIBRARY}
+    ${KDE4_SOLID_LIBS}
+    ${KDE4_PHONON_LIBS}
+)
 
 install(TARGETS kdeinit_dolphin ${INSTALL_TARGETS_DEFAULT_ARGS})
 install(TARGETS dolphin ${INSTALL_TARGETS_DEFAULT_ARGS})
@@ -319,10 +322,10 @@ kde4_add_plugin(kcm_dolphinnavigation ${kcm_dolphinnav
 kde4_add_plugin(kcm_dolphinservices ${kcm_dolphinservices_PART_SRCS})
 kde4_add_plugin(kcm_dolphingeneral ${kcm_dolphingeneral_PART_SRCS})
 
-target_link_libraries(kcm_dolphinviewmodes  ${KDE4_KDEUI_LIBS} ${KDE4_KFILE_LIBS} dolphinprivate)
-target_link_libraries(kcm_dolphinnavigation  ${KDE4_KDEUI_LIBS} ${KDE4_KFILE_LIBS} dolphinprivate)
-target_link_libraries(kcm_dolphinservices  ${KDE4_KDEUI_LIBS} ${KDE4_KFILE_LIBS} ${KDE4_KIO_LIBS} ${KDE4_KNEWSTUFF3_LIBRARY} dolphinprivate)
-target_link_libraries(kcm_dolphingeneral ${KDE4_KDEUI_LIBS} ${KDE4_KFILE_LIBS} ${KDE4_KIO_LIBS} dolphinprivate)
+target_link_libraries(kcm_dolphinviewmodes  dolphinprivate ${KDE4_KDEUI_LIBS} ${KDE4_KFILE_LIBS})
+target_link_libraries(kcm_dolphinnavigation dolphinprivate ${KDE4_KDEUI_LIBS} ${KDE4_KFILE_LIBS})
+target_link_libraries(kcm_dolphinservices   dolphinprivate ${KDE4_KNEWSTUFF3_LIBRARY} ${KDE4_KDEUI_LIBS} ${KDE4_KFILE_LIBS} ${KDE4_KIO_LIBS})
+target_link_libraries(kcm_dolphingeneral    dolphinprivate ${KDE4_KDEUI_LIBS} ${KDE4_KFILE_LIBS} ${KDE4_KIO_LIBS})
 
 install(TARGETS kcm_dolphinviewmodes DESTINATION ${PLUGIN_INSTALL_DIR} )
 install(TARGETS kcm_dolphinnavigation DESTINATION ${PLUGIN_INSTALL_DIR} )
